package com.inspur.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.inspur.common.annotation.Excel;
import com.inspur.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【服务器】对象 pm_server
 * 
 * @author ruoyi
 * @date 2024-04-18
 */
public class PmServer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 服务编号 */
    private String serNo;

    /** 项目编号 */
    private String proNo;

    /** IP地址 */
    @Excel(name = "IP地址")
    private String serIpAddr;

    /** 端口 */
    @Excel(name = "端口")
    private String serPort;

    /** CPU */
    @Excel(name = "CPU")
    private String serCpu;

    /** 内存 */
    @Excel(name = "内存")
    private String serMemory;

    /** 存储 */
    @Excel(name = "存储")
    private String serStorage;

    /** 租号锁 */
    @Excel(name = "租号锁")
    private String tenantId;

    /** 乐观锁 */
    @Excel(name = "乐观锁")
    private Long revision;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间")
    private Date createdTime;

    /** 更新人 */
    @Excel(name = "更新人")
    private String updatedBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间")
    private Date updatedTime;

    public void setSerNo(String serNo) 
    {
        this.serNo = serNo;
    }

    public String getSerNo() 
    {
        return serNo;
    }
    public void setProNo(String proNo) 
    {
        this.proNo = proNo;
    }

    public String getProNo() 
    {
        return proNo;
    }
    public void setSerIpAddr(String serIpAddr) 
    {
        this.serIpAddr = serIpAddr;
    }

    public String getSerIpAddr() 
    {
        return serIpAddr;
    }
    public void setSerPort(String serPort) 
    {
        this.serPort = serPort;
    }

    public String getSerPort() 
    {
        return serPort;
    }
    public void setSerCpu(String serCpu) 
    {
        this.serCpu = serCpu;
    }

    public String getSerCpu() 
    {
        return serCpu;
    }
    public void setSerMemory(String serMemory) 
    {
        this.serMemory = serMemory;
    }

    public String getSerMemory() 
    {
        return serMemory;
    }
    public void setSerStorage(String serStorage) 
    {
        this.serStorage = serStorage;
    }

    public String getSerStorage() 
    {
        return serStorage;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setRevision(Long revision) 
    {
        this.revision = revision;
    }

    public Long getRevision() 
    {
        return revision;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedTime(Date updatedTime) 
    {
        this.updatedTime = updatedTime;
    }

    public Date getUpdatedTime() 
    {
        return updatedTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("serNo", getSerNo())
            .append("proNo", getProNo())
            .append("serIpAddr", getSerIpAddr())
            .append("serPort", getSerPort())
            .append("serCpu", getSerCpu())
            .append("serMemory", getSerMemory())
            .append("serStorage", getSerStorage())
            .append("tenantId", getTenantId())
            .append("revision", getRevision())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedTime", getUpdatedTime())
            .toString();
    }
}
